import { defineStore } from "pinia";

export const useUserStore = defineStore({
  id: "userInfo",
  state: () => ({
    token: null,
    userId: null,
    userName: null,
    avatar: null,
    nickName: null,
    permissions: [],
    roles: [],
  }),
  actions: {
    setUserId(userId) {
      this.userId = userId;
    }
  },
});
